<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>登记-安平县居民核酸检测信息系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="layui/css/layui.css"  media="all">
  <script src="https://cdn.bootcdn.net/ajax/libs/fastclick/1.0.6/fastclick.js"></script>
  <script src="jquery.min.js"></script>
  <script src="jquery.cookie.js"></script>
</head>
  <style>
    #main{
        width: 340px;
        margin: 0 auto;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    #main dl{
        display: flex;
        justify-content: left;
        align-items: center;
        height: 34px;
    }
    #main dl dd{
        width: 250px;
    }
    #main dl dt{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 34px;
        width: 100px;
    }
    #main dl dt span{
        color: red;
        position: relative;
        top: 3px;
        margin-right: 5px;
    }
    .tips{
          width: 340px;
          color: #999;
          margin: 0 auto;
    }
    .copy{
        text-align: center;
        width: 100%;
    }
    .layBox{
        min-height: 580px;
        overflow: hidden;
    }
    .button{
        width: 200px;
        position: relative;
        left: 50%;
        margin-left: -100px;
        margin-top: 30px;
    }
</style>
<body>
    <div class="layBox">
        <div id="main">
            <dl>
                <dt>
                    <span>*</span>
                    口令
                </dt>
                <dd>
                    <input type="text" class="layui-input" id="mm" placeholder="请输入检测密码" /> 
                </dd>
            </dl>
        </div>
        
        <div class="tips">
            注：请咨询相关人员
        </div>
        <div class="button layui-btn" id="yz">提交</div>
    </div>

    <div class="copy">
        <p>安平县新冠肺炎疫情防控工作指挥部</p>
        <p>技术支持：智慧安平</p>
    </div>
<script src="layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
layui.use(['form', 'layer', 'jquery'], function(){
  var form = layui.form
  ,layer = layui.layer
  ,$ = layui.jquery;
})
var yz = $("#yz");
yz.click(function(){
    if($("#mm").val().trim() != $.cookie('ps')){
        layer.msg('密码错误')
    }else{
        $(location).attr("href", "http://user.city1000.cn:9999/weixin/wechat/h5/redirectSomeWhere?url=http://hesuan.city1000.cn/register_other.html")
    }
})
</script>

</body>
</html>